﻿namespace GreenIsomer.Data.Entities.Ddl {
	using System;
	using System.Xml.Serialization;

	[Serializable]
	public abstract class TableBase {

		[NonSerialized]
		private IndexCollection indexes;

		protected TableBase() {
			indexes = new IndexCollection();
		}

		[XmlAttribute("Name")]
		public string Name { get; set; }

		[XmlAttribute("SuppressDdlOutput")]
		public bool SuppressDdlOutput { get; set; }

		[XmlElement("Index")]
		public IndexCollection Indexes {
			get { return indexes; }
		}

	}

}